package com.yuebook.smartrpc.framework.serialization.serializer;

/**
 * @author honglei
 * @date 2018/11/17 下午10:45
 */
public interface ISerializer {

    <T> byte[] serialize(T obj);

    <T> T deserialize(byte[] data, Class<T> clazz);
}
